<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="/res/style/space/space.css" type="text/css" />
<style type="text/css">
#navigation {
	background: #74A8F5;
	border-top: 1px solid #ffffff;
	height: 25px;
	clear: both
}

/*普通样式*/
div.style1 {
	width: 20px;
	height: 20px;
	float: left;
	background-color: aqua;
	border: 1px solid gray;
	font-size: 15px;
	text-align: center;
	cursor: inherit;
}
/*高亮样式*/
div.style2 {
	width: 20px;
	height: 20px;
	float: left;
	background-color: gray;
	border: 1px solid black;
	font-size: 15px;
	text-align: center;
	font-weight: bold;
	cursor: inherit;
}
</style>

<script type="text/javascript" src="/res/script/space/spaceIndex.js">
	
</script>

</head>
<body onload="startChange();" bgcolor="gray">
	<!-- menu -->
<html>
<head>
<base href="http://localhost:8080/">

<title>网络新闻管理系统</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript">
	function saveTake(o) {
		var name = o.name;
		window.location = window.location = 'spaceManage.action?id=' + name
				+ '&' + 'act=saveTake';
	}
	function cancelTake(o) {
		var name = o.name;
		window.location = window.location = 'spaceManage.action?type=' + name
				+ '&' + 'act=cancelTake';
	}
</script>

</head>

<body>
	<div class="menu">
		<ul>
			<li id="current"><a href="space_sHomePager.action"><span>主页</span>
			</a>
			</li>
			<li><a href="space_uInfo.action">个人信息</a>
			</li>
			<li><a href="space_uTake.action">订阅</a>
			</li>
			<li><a href="space_uMessage.action">个人消息</a>
			</li>
		</ul>
	</div>
</body>
</html>
<table border="1" align="center" width="840" height="680">

	<td valign="top">
		<h3 align="center">用户信息</h3> 欢迎您：<a class=""
		href="personal.action?act=showSpace">bird</a> <a
		href="action_logout.action">注销</a>



		<hr>
		<div>
			<Iframe src="/page/space/left.html" width="260" height="600"
				scrolling="no" frameborder="0"></iframe>
		</div>
	</td>

	<td valign="top">
		<form style="float: left;">
		<h3>相关信息</h3>
			<c:choose>
				<c:when test="${utakes != null}">
					<c:forEach items="${utakes }" var="take" varStatus="status">

						<table>
							<tr>
								<td><label>订阅名:</label>
								</td>
								<td><label>${take.typename}</label>
								</td>
							</tr>
							<tr>
								<td><a href="javascript:void(0)" name="${take.type}"
									onclick="cancelTake(this);">取消订阅</a></td>
							</tr>
						</table>
						-----------------------------
					</c:forEach>
				</c:when>
				</c:choose>
				<c:choose>
				<c:when test="${untakes != null}">
					<c:forEach items="${untakes }" var="type" varStatus="status">

						<table>
							<tr>
								<td><label>订阅名:</label>
								</td>
								<td><label>${type.typename}</label>
								</td>
							</tr>
							<tr>
								<td><label>简介:</label>
								</td>
								<td colspan="6" style="text-align: left;">
								<td>${type.description}</td>
							</tr>
							<tr>
								<td><a href="javascript:void(0)" onclick="saveTake(this);"
									name="${status.index}">订阅</a></td>
							</tr>
						</table>
						-----------------------------
					</c:forEach>
				</c:when>
			</c:choose>

		</form>
	</td>
</table>
<div align="center">
	<div>Copyright2013&copy;广东工业大学</div>
</div>
</body>
</html>
